package com.hzqy.web.ac.weather;

import com.hzqy.service.weather.WeatherForecastCommonServiceBean;
import com.hzqy.web.login.SessionKey;
import com.hzqy.web.vo.weather.WeatherForecastCommonVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/industry/WeatherForecastCommon")
public class WeatherForecastCommonAction {
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	@Resource
	private WeatherForecastCommonServiceBean weatherForecastCommonServiceBean;
	
	/**
	 * 获取宁波天气预报信息
	 * @param vo
	 * @return
	 */
	@RequestMapping("/selectWeatherForecastCommonVo")
	@ResponseBody
	public Object selectWeatherForecastCommonVo(HttpSession session,WeatherForecastCommonVo vo) {
		String areaid = (String) session.getAttribute(SessionKey.SESSION_AREA);
		vo.setF_wfc_area_code(areaid);
		Object object= weatherForecastCommonServiceBean.selectWeatherForecastCommonVo(vo);
		System.out.println("1.========="+vo);
		return object;
	}
	
	
}
